package com.clkj.xiuzheng.dao.shangcheng;

import com.clkj.xiuzheng.pojo.shangcheng.OrderReturn;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author yawang
 * @create 2024/06/24 11:47:42
 **/
@Repository
public interface OrderReturnMapper extends Mapper<OrderReturn> {

    @Select("select * from t_view_orderReturn where user_id = #{userId} order by  return_id desc ")
    List<OrderReturn> listReturnOrder(@Param("userId")Integer userId);

    @Select("select * from t_view_orderReturn order by  return_id desc ")
    List<OrderReturn> listAllReturnOrder();
}
